package org.dromara.school.service;

import org.dromara.school.domain.Student;
import org.dromara.school.domain.vo.StudentVo;
import org.dromara.school.domain.bo.StudentBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 学生管理Service接口
 *
 * @author gjb
 * @date 2025-05-28
 */
public interface IStudentService {

    /**
     * 查询学生管理
     */
    StudentVo queryById(Long studentId);

    /**
     * 查询学生管理列表
     */
    TableDataInfo<StudentVo> queryPageList(StudentBo bo, PageQuery pageQuery);

    /**
     * 查询学生管理列表
     */
    List<StudentVo> queryList(StudentBo bo);

    /**
     * 新增学生管理
     */
    Boolean insertByBo(StudentBo bo);

    /**
     * 修改学生管理
     */
    Boolean updateByBo(StudentBo bo);

    /**
     * 校验并批量删除学生管理信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    StudentVo selectStudentParentsById(Long id);

    Student findStudent(StudentVo studentVo);

    int editStudentParent(StudentBo studentBo);
}
